package com.hyh.feign.clients;

import com.hyh.feign.domain.Cart;
import com.hyh.feign.result.PageResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "cartservice")
public interface CartClient {
    @GetMapping("/api/cart/getCart/{id}")
    public Cart getCart(@PathVariable("id") Long id);
}
